﻿using JY.Wpf.Core.Enums;

namespace JY.Wpf.Core.Events
{
    /// <summary>
    /// 警告消息事件模型
    /// </summary>
    public class WarningMessageEvent
    {
        #region # 构造器

        /// <summary>
        /// 构造器
        /// </summary>
        /// <param name="message">消息内容</param>
        /// <param name="messageType">消息类型 MessageType.Success MessageType.Warning</param>
        public WarningMessageEvent(string message, MessageType messageType = MessageType.Error)
        {
            this.Message = message;
            this.MessageType = messageType;
        }

        #endregion

        /// <summary>
        /// 消息类型
        /// </summary>
        public MessageType MessageType { get; set; }

        /// <summary>
        /// 消息内容
        /// </summary>
        public string Message { get; set; }
    }
}
